﻿@{
    var user = CloudStorageLight.Web.Models.BasicAuthenticateUtil.GetCurrentUser();
}   
 <div class="clearfix bg-darkBlue fg-white" id="header-cont">
        <div class="place-right">
            <div class="margin10">
                <i class="icon-user"></i>
                @(user.Name)
                <a id="logoff" href="@Url.Action("LogOff", "Account")"><i class="icon-exit" title="logoff" style="background:white;color:blue;padding:10px;border-radius:50%"></i></a>
            </div>

        </div>
        <div class="place-left margin10">

            <nav class="horizontal-menu">
                <ul>
                    @Html.Partial("_HomeCommand")
                    @if (user.IsAdmin)
                    {
                        <li><a class="command-link bg-hover-blue" href="@Url.Action("CloudSettings", "Home")">@(CloudStorageLight.Core.Web.ViewMessages.CmdCloudAccountSettings)</a></li>
                        <li><a class="command-link bg-hover-blue" href="@Url.Action("Configuration", "Home")">@(CloudStorageLight.Core.Web.ViewMessages.MsgStorageConfiguration)</a></li>
                        <li><a class="command-link bg-hover-blue" href="@Url.Action("LogView", "Home")">@(CloudStorageLight.Core.Web.ViewMessages.MsgLogView)</a></li>
                    }
                </ul>
            </nav>
        </div>
    </div>

